package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 优惠券会员关系表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_member_coupon")
@ApiModel(value = "XhMemberCoupon对象", description = "优惠券会员关系表")
public class XhMemberCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer memberId;

    @ApiModelProperty("优惠券id")
    private Integer couponId;

    @ApiModelProperty("优惠券状态 0：未使用(默认)，1：已使用，2：已过期")
    private Integer couponStatus;

    @ApiModelProperty("优惠券名称")
    private String snapCouponName;

    @ApiModelProperty("优惠券类型:1.无门槛券2.满减券")
    private Integer snapCouponType;

    @ApiModelProperty("优惠券面值")
    private BigDecimal snapFaceValue;

    @ApiModelProperty("优惠券满减条件")
    private BigDecimal snapConditionValue;

    @ApiModelProperty("生效开始时间")
    private Date snapEffectiveStartTime;

    @ApiModelProperty("生效结束时间")
    private Date snapEffectiveEndTime;

    @ApiModelProperty("使用场景：1.换电套餐2.救援订单3.租赁套餐4.商城订单")
    private Integer snapUsedScene;

    @ApiModelProperty("优惠券说明")
    private String snapCouponDes;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date modifyTime;

}
